3. Infections Bacterial infections, such as foot rot or joint infections, can also result in leg pain. These infections often require immediate veterinary attention to prevent further complications.